/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.secretaria.saude.util;

import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author Pablo
 */
public class DataUtil { 
    
    private DataUtil() {
        
    }
    
    
    public static String formatarData(Date data, String formato) {
        Format format = new SimpleDateFormat(formato);
        return format.format(data);
    }
    
}
